<?php

namespace App\Http\Controllers\Api\v2;

use App\Http\Controllers\ApiController;
use App\Models\Pages;

class PagesController extends ApiController
{
    /**
     * @return \Illuminate\Http\JsonResponse
     */
    public function getPage(){
        $pageid = $this->request->input('pageid');
        return ajaxReturn([
            'page'=>Pages::find($pageid)
        ]);
    }
}
